package cn.zktr.Personnel.controllers.zhouxiong;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import cn.zktr.Personnel.model.service.zhouxiong.*;
import cn.zktr.Personnel.model.service.zhouyongcong.*;

@Controller
public class KaoQinZhuYeController {
	@Autowired
	private KaoQinKaService kqk;
	@Autowired
	private JiChuService jichu;
	@Autowired
	private QiTaYeWuService qita;
	
	@RequestMapping("zx/kao-qin-zhu-ye")
	public void zhujiemian() {}
	
	@PostMapping("kao-qin-zhu-ye-shu-ju-tong-ji")
	@ResponseBody
	public JSONObject selectTongJi(Integer EMPID,String DATE) {
		return qita.selectTongJi(EMPID, DATE);
	}
	
	@PostMapping("kao-qin-zhu-ye-dang-ri-qian-dao-ci-shu")
	@ResponseBody
	public int selectQianDaoCiShu(Integer EMPID,String DATE) {
		return qita.selectQianDaoCiShu(EMPID, DATE);
	}
	
	@PostMapping("kao-qin-zhu-ye-qian-zhi")
	@ResponseBody
	public int KaoQinZhuYeQianZhi(Integer EMPID) {
		return qita.selectSFKqk(EMPID);
	}

	
}
